<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:78:"/Users/sakura/code/yxAdmin/public/../application/admin/view/database/view.html";i:1552675464;}*/ ?>

<link rel="stylesheet" href="/static/admin/css/app.min.css">
<script src="/static/admin/js/app.min.js"></script>
<div class="row">
    <div class="col-md-12">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">表名：<span class="text-blue"><?php echo $table; ?></span>&nbsp;主键：<span class="text-yellow"><?php echo $pk; ?></span></h3>
            </div>
            <div class="box-body table-responsive">
                <table id="datalist" class="table table-hover table-bordered datatable" width="100%">
                    <thead>
                    <tr>
                        <th>字段名</th>
                        <th>类型</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if(is_array($fields) || $fields instanceof \think\Collection || $fields instanceof \think\Paginator): if( count($fields)==0 ) : echo "" ;else: foreach($fields as $key=>$l): ?>
                    <tr>
                        <td>
                            <?php echo $l['name']; ?>
                        </td>
                        <td>
                            <?php echo $l['type']; ?>
                        </td>
                    </tr>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>